#app {
  background: $mainBg;
  .main-container {
    position: relative;
    transition: all .3s;
    &--vertical {
      min-height: calc(100% - 60px);
      left: $sideBarWidth;
    }
    &--horizontal {
      min-height: calc(100% - 60px) !important;
      margin-left: 0px !important;
      top: 60px !important;
      .app-main {
        min-height: calc(100vh - 116px);
      }
    }
    &.little {
      width: calc(100% - 50px) !important;
      left: 50px;
    }
    &.tiny {
      width: calc(100%) !important;
      left: 0;
    }
  }

  .sidebar {
    z-index: 10001;
  }

  .sidebar-container {
    transition: width 0.28s;
    background-color: $menuBg;
    position: fixed;
    font-size: 0px;
    top: 60px;
    box-shadow: 0px 2px 4px 0px #d3d9ec;
    bottom: 0;
    left: 0;
    z-index: 999;
    overflow: hidden;
    transition: all .3s;
    &.tiny {
      width: 0 !important;
    }
    &.little {
      width: 50px !important;
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      .el-scrollbar {
        width: 100%;
        height: calc(100% - 50px);
      }
      .list-i {
        font-size: 18px;
        color: #62687f;
      }
      .list {
        width: 100%;
      }
      .list-item {
        width: 100%;
        height: 50px;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        transition: all .3s;
        &:hover {
          color: $menuActiveText;
          // background-color: $subMenuHover;
        }
      }
      .svg-icon {
        margin: 0 !important;

      }
    }
    .el-submenu.is-opened {
      .el-menu-item,
      .el-submenu__title {
        background-color: transparent !important;
      }
    }
    .el-menu-item,
    .el-submenu__title {
      line-height: 40px;
      height: 40px;
      padding: 0;
      padding-left: 16px !important;
    }
    .submenu-title-noDropdown {
      padding-left: 44px !important;
    }
    .el-menu-item::before,
    .el-submenu__title::before {
      content: "";
      display: inline-block;
      vertical-align: middle;
      width: 0px;
      height: 0px;
      border-radius: 50%;
      background-color: transparent;
      margin-right: 6px;
    }
    .el-submenu__title + .el-menu .el-menu-item::before,
    .el-submenu__title + .el-menu .el-submenu__title::before {
      content: "";
      display: inline-block;
      vertical-align: middle;
      width: 0;
      height: 0;
      margin-right: 0;
    }
    &--vertical {
      width: $sideBarWidth !important;
      height: 100%;
      .menu-wrapper {
        .el-submenu {
          &.is-active {
            .el-submenu__title {

            }
          }
        }
      }
    }
    &--horizontal {
      width: 100% !important;
      height: 50px !important;
      .el-menu {
        .menu-wrapper {
          float: left !important;
          width: 230px !important;
        }
      }
    }
    // reset element-ui css
    .horizontal-collapse-transition {
      transition: 0s width ease-in-out, 0s padding-left ease-in-out, 0s padding-right ease-in-out;
    }

    .scrollbar-wrapper {
      overflow-x: hidden !important;
    }

    .el-scrollbar__bar.is-vertical {
      right: 0px;
    }

    .el-scrollbar {
      height: calc(100% - 120px);
    }

    &.has-logo {
      .el-scrollbar {
        height: calc(100% - 50px);
      }
    }

    .is-horizontal {
      display: none;
    }

    a {
      display: inline-block;
      width: 100%;
      overflow: hidden;
    }

    .svg-icon {
      margin-right: 10px;
    }

    .el-menu {
      border: none;
      height: 100%;
      width: 100% !important;

    }
    .submenu-title-noDropdown {
      &.is-active {
        .link-item {
          border-left: 2px solid $menuActiveText;
          color: $menuActiveText;
        }
      }
    }
    // menu hover
    .router-link-active {
      .noplace {
        .sub-link {
          color: $menuActiveText;
        }
      }
    }
    .sub-menu {

      .sub-place {
        height: 100%;
        width: 19px;
        margin-right: 16px;
        display: inline-block;
      }
      .svg-icon {
        margin-right: 16px;
      }
    }
    .submenu-title-noDropdown {
      &:hover {
        background-color: transparent !important;
      }
      .link-item  {
        border-left: 2px solid transparent;
        transition: all .3s;
        padding-left: 14px;
        position: relative;
        left: -2px;
      }

      &.noplace {
        padding-left: 16px !important;
        &:hover {
          background-color: transparent !important;
        }
        .icon-holder {
          height: 100%;
          width: 19px;
          margin-right: 16px;
          display: inline-block;
        }
        .svg-icon {
          margin-right: 16px;
        }
      }

      .placeholder {

        height: 105%;
        width: 2px;
        background: #dee3f7;
        display: inline-block;
      }
      &:hover {
        .link-item {
          border-left: 2px solid $menuActiveText;
          color: $menuActiveText;
        }
        // background-color: $menuHover !important;
      }
    }
    .el-submenu__title {
      &:hover {
        background-color: transparent !important;
      }
      .link-item  {
        border-left: 2px solid transparent;
        transition: all .3s;
        padding-left: 14px;
        position: relative;
        left: -2px;
      }

      &.noplace {
        padding-left: 16px !important;
        &:hover {
          background-color: transparent !important;
        }
        .icon-holder {
          height: 100%;
          width: 19px;
          margin-right: 16px;
          display: inline-block;
        }
        .svg-icon {
          margin-right: 16px;
        }
      }

      .placeholder {

        height: 105%;
        width: 2px;
        background: #dee3f7;
        display: inline-block;
      }
      &:hover {
        .link-item {
          border-left: 2px solid $menuActiveText;
          color: $menuActiveText;
        }
        // background-color: $menuHover !important;
      }
    }

    .is-active>.el-submenu__title {
      color: $subMenuActiveText !important;
    }

    & .nest-menu .el-submenu>.el-submenu__title,
    & .el-submenu .el-menu-item {
      min-width: $sideBarWidth !important;
      // background-color: $subMenuBg !important;

      &:hover {
        // background-color: $subMenuHover !important;
      }
    }
  }

  .hideSidebar {
    .sidebar-container {
      width: 54px  !important;
      &--horizontal {
        width: 100% !important;
      }
    }

    .main-container {
      // margin-left: 54px;
      margin-left: 108px;
    }

    .submenu-title-noDropdown {
      padding: 0 !important;
      position: relative;

      .el-tooltip {
        padding: 0 !important;

        .svg-icon {
          margin-left: 20px;
        }
      }
    }

    .el-submenu {
      overflow: hidden;

      &>.el-submenu__title {
        padding: 0 !important;

        .svg-icon {
          margin-left: 20px;
        }

        // .el-submenu__icon-arrow {
        //   display: none;
        // }
      }
    }

    .el-menu--collapse {
      .el-submenu {
        &>.el-submenu__title {
          &>span {
            height: 0;
            width: 0;
            overflow: hidden;
            visibility: hidden;
            display: inline-block;
          }
        }
      }
    }
  }

  .el-menu--collapse .el-menu .el-submenu {
    min-width: $sideBarWidth !important;
  }

  // mobile responsive
  .mobile {
    .main-container {
      // margin-left: 0px;
    }

    .sidebar-container {
      transition: transform .28s;
      width: $sideBarWidth !important;
    }

    &.hideSidebar {
      .sidebar-container {
        pointer-events: none;
        transition-duration: 0.3s;
        transform: translate3d(-$sideBarWidth, 0, 0);
      }

      .main-container {
        margin-left: 54px;
      }
    }
  }

  .withoutAnimation {

    .main-container,
    .sidebar-container {
      transition: none;
    }
  }
  .sidebar.zlst-sidebar {
    background: $sideBarBg;
  }
}

// when menu collapsed
.el-menu--vertical {
  &>.el-menu {
    .svg-icon {
      margin-right: 16px;
    }
  }

  .nest-menu .el-submenu>.el-submenu__title,
  .el-menu-item {
    &:hover {
      // you can use $subMenuHover
      background-color: transparent !important;
    }
  }

  // the scroll bar appears when the subMenu is too long
  >.el-menu--popup {
    max-height: 100vh;
    overflow-y: auto;

    &::-webkit-scrollbar-track-piece {
      background: #d3dce6;
    }

    &::-webkit-scrollbar {
      width: 6px;
    }

    &::-webkit-scrollbar-thumb {
      background: #99a9bf;
      border-radius: 20px;
    }
  }
}

.el-menu--horizontal {
  .svg-icon {
    margin-right: 10px;
  }
}
// 头部
.zlst-header {
  display: flex;
  height: 60px;
  line-height: 60px;
  min-height: 60px;
  padding: 0 15px;
  background: $headerBg;
  color: $headerColor;
  .zlst-user-center {
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
    width:80px;
    height:24px;
    background:$headerUserCenterBg;
    border-radius:12px;
    font-size: 12px;
    line-height: 24px;
    text-align: center;
    color: $headerColor;
    font-weight: bold;
    margin: 0 24px;
  }
  .zlst-user {
    .notice {
      display: inline-block;
      vertical-align: middle;
      position: relative;
      cursor: pointer;
      margin-right: 15px;
      top: -2px;
      img {
        width: 20px;
      }
      i {
        position: absolute;
        right: 8px;
        top: 17px;
        z-index: 9;
        display: block;
        min-width: 7px;
        height: 7px;
        line-height: 14px;
        text-align: center;
        background: #ee5750;
        border-radius: 8px;
      }
    }
    .quit {
      cursor: pointer;
      width: 24px;
    }
  }
}
.zlst-project-name {
  line-height: 50px;
  height: 50px;
  font-size: 16px;
  border-bottom: 1px solid #e9ecf7;
  color: $projectNameColor;
  font-weight: bold;
  padding: 0 15px;
  word-wrap:normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  &.tiny {
    padding: 0;
    width: 100%;
    display: flex;
    justify-content: center;

  }
  .toggle {
    float: right;
    cursor: pointer;
    color: #9ba3c2;
    font-size: 18px;
    line-height: 50px;
  }
}
